public class Names
{
   /**
      Gets the initials of a name.
      @param first the first name of this name
      @param middle the middle name of this name
      @param last the last name of this name
      @return a string consisting of the first character of the first, middle,
      and last name
   */
   public String initials(String first, String middle, String last)
   {
      String a= first.substring(0,1);
      String b= middle.substring(0,1);
      String c= last.substring(0,1);
      return a+b+c;
   }
}